class Component {
  static isReactComponent = true; //用来区分是函数还是类组件
  constructor(props) {
    this.props = props;
  }

  render(){
    throw new Error('此方法为抽象方法,需要子类实现');
  }
}

export default Component;
